home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1599 / 1398 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  2.0 KB

  1. From: Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
  2. Date: Tue, 17 May 94 10:54:38 +0200
  3. Message-Id: <9405170854.AA04382@issan.informatik.uni-dortmund.de>
  4. To: mint@atari.archive.umich.edu
  5. In-Reply-To: <9405161410.AA04357@rabe.techfak.uni-bielefeld.de> (itschere@TechFak.Uni-Bielefeld.DE)
  6. Subject: Re: Deleting owned files...
  7.  
  8. itschere@TechFak.Uni-Bielefeld.DE writes:
  9.  
  10. |>  Hellooo...
  11. |>> |> lancelot# ll !$
  12. |>> |> -r--r--r--   1 269      15          17976 May 11 19:46 uucp-1.03/COPYING
  13. |>> |> lancelot# tar xzvf uucp-1.03.tar.gz uucp-1.03/COPYING
  14. |>> |> uucp-1.03/COPYING
  15. |>> |> tar: Could not create file uucp-1.03/COPYING : access denied.
  16. |>> 
  17. |>> MiNT does not allow root to open a readonly file for writing.  This
  18. |>> should really be changed, IMHO.
  19.  
  20. |>  Hmmm, wrong. MiNT (or the denyaccess() routine) does very well allow root
  21. |> to open a readonly file for writing. 
  22.  
  23. Yes, i stand corrected. I was confusing it with the inability to
  24. *delete* a readonly file, even if the directory has write permission.
  25. On tosfs, this may be The Right Thing, but it should not be enforced
  26. by MiNT, since the minix fs has real directory permissions.
  27.  
  28. Under SunOS you get the same error when tar tries to extract readonly
  29. file which exists already.
  30.  
  31. |> The problem is that you must ignore the
  32. |> reported filemode and just try it. Most programs seems to self-check the
  33. |> file modes before trying to open the file, and therefore fail. I've seen
  34. |> some GNU tools and editors doing this.
  35.  
  36. Most tool just open a file with fopen or open, and make no explicit
  37. check for access permission, rather they rely on the OS for doing
  38. this.  GNU emacs does check for write access, and if the user confirms
  39. that she really wants to write to the file, it changes the file modes
  40. temporarily.
  41.  
  42. Andreas.
  43.  
  44. -- 
  45. +------------------------------------------------------------------------+
  46. Andreas Schwab                                      "And now for something
  47. schwab@ls5.informatik.uni-dortmund.de                completely different"
  48. * Linux/Atari is coming real soon now, stay tuned *
  49.